package com.service.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.util.Date;

@Data
@ApiModel("废品入库")
public class WarehousingForm {

    @ApiModelProperty("废品类型")
    @NotBlank(message = "废品类型不能为null")
    private String wasteType;

    @ApiModelProperty("入库重量")
    @NotNull(message = "入库重量不能为null")
    private double inWeight;

    @ApiModelProperty("废品重量（订单）")
    @NotNull(message = "废品重量（订单）不能为null")
    private double wasteWeight;

    @ApiModelProperty("单价")
    @NotNull(message = "单价不能为null")
    private double wastePrice;

    @ApiModelProperty("小计")
    @NotNull(message = "小计不能为null")
    private double subtotal;

    @ApiModelProperty("误差/损耗（差价）")
    @NotNull(message = "误差/损耗（差价）不能为null")
    private double differenceOfPrice;

    @ApiModelProperty("赔付状态（忽略/骑手赔付）")
    @Pattern(regexp = "(忽略|骑手赔付)")
    private String state;

    @ApiModelProperty("骑手ID")
    @NotNull(message = "骑手ID不能为null")
    private Integer recyclerId;

    @ApiModelProperty("订单编号")
    @NotBlank(message = "订单编号不呢为null")
    private String orderSerialNumber;

    @ApiModelProperty("入库仓库Id")
    @NotNull(message = "入库仓库Id不能为null")
    private Integer storageId;

    @ApiModelProperty("入库时间")
    @NotNull
    private Date warehousingTime;


}
